<!DOCTYPE html>
<html ng-app="notesApp">
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body ng-controller="MainCtrl as ctrl">
		<div ng-repeat="(author, note) in ctrl.notes">
			<span class="label">{{note.label}}</span>
			<span class="author">{{author}}</span>
		</div>
	</body>
	<script src="js/angular.min.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		angular.module('notesApp', [])
		.controller('MainCtrl', [function(){
			var self = this;
			self.notes = {
				shyam: {
					id: 1,
					label: 'First Note',
					done: false
				},
				Misko: {
					id: 3,
					label: 'Finished Third Note',
					done: true
				},
				brad: {
					id: 2,
					label: 'Second Note',
					done: false
				}
			};
		}]);
	</script>
</html>
